home *** CD-ROM | disk | FTP | other *** search
- package morpheme.backgammon;
-
- // $FF: renamed from: morpheme.backgammon.b
- public class class_0 {
- // $FF: renamed from: if byte
- public static final byte field_0 = 20;
- // $FF: renamed from: f byte
- public static final byte field_1 = 0;
- // $FF: renamed from: b byte
- public static final byte field_2 = 1;
- // $FF: renamed from: h byte
- public static final byte field_3 = 2;
- // $FF: renamed from: for byte
- public static final byte field_4 = 3;
- // $FF: renamed from: i byte
- public static final byte field_5 = 4;
- // $FF: renamed from: do byte
- public static final byte field_6 = 5;
- // $FF: renamed from: j byte
- public static final byte field_7 = 6;
- // $FF: renamed from: m byte
- public static final byte field_8 = 7;
- // $FF: renamed from: void byte
- public static final byte field_9 = 8;
- // $FF: renamed from: e byte
- public static final byte field_10 = 9;
- // $FF: renamed from: l byte
- public static final byte field_11 = 10;
- // $FF: renamed from: int byte
- public static final byte field_12 = 11;
- // $FF: renamed from: k byte
- public static final byte field_13 = 12;
- // $FF: renamed from: goto byte
- public static final byte field_14 = 13;
- // $FF: renamed from: else byte
- public static final byte field_15 = 14;
- // $FF: renamed from: char byte
- public static final byte field_16 = 15;
- // $FF: renamed from: byte byte
- public static final byte field_17 = 16;
- // $FF: renamed from: try byte
- public static final byte field_18 = 17;
- // $FF: renamed from: a byte
- public static final byte field_19 = 18;
- // $FF: renamed from: null byte
- public static final byte field_20 = 0;
- // $FF: renamed from: new byte
- public static final byte field_21 = 1;
- // $FF: renamed from: o byte
- private byte field_22;
- // $FF: renamed from: q byte
- private byte field_23;
- // $FF: renamed from: n int
- private int field_24;
- // $FF: renamed from: long int
- private int field_25;
- // $FF: renamed from: case byte[]
- public byte[] field_26;
- // $FF: renamed from: g long[]
- public long[] field_27;
- // $FF: renamed from: d byte[]
- public byte[] field_28;
- // $FF: renamed from: c java.lang.String[][]
- public String[][] field_29;
- // $FF: renamed from: p morpheme.backgammon.h
- private h field_30;
-
- public class_0(h var1) {
- this.field_30 = var1;
- this.method_12();
- }
-
- // $FF: renamed from: a (byte, int) void
- public synchronized void method_0(byte var1, int var2) {
- ++this.field_25;
- this.field_26[this.field_25] = var1;
- this.field_27[this.field_25] = (long)var2 + System.currentTimeMillis();
- }
-
- // $FF: renamed from: a (java.lang.String, byte, int) void
- public synchronized void method_1(String var1, byte var2, int var3) {
- if (this.method_7(this.method_9())) {
- int var4 = this.field_25;
-
- do {
- --var4;
- } while(this.method_7(this.method_8(var4)));
-
- ++var4;
- this.method_13(var4);
- this.field_26[var4] = 5;
- this.field_28[var4] = var2;
- this.field_27[var4] = -1L;
- this.field_29[var4] = new String[1];
- this.field_29[var4][0] = var1;
- ++this.field_25;
- ++this.field_24;
- } else {
- ++this.field_25;
- ++this.field_24;
- this.field_26[this.field_25] = 5;
- this.field_28[this.field_25] = var2;
- this.field_27[this.field_25] = -1L;
- this.field_29[this.field_25] = new String[1];
- this.field_29[this.field_25][0] = var1;
- this.field_30.goto.if(var1);
- }
-
- }
-
- // $FF: renamed from: a (java.lang.String, byte) void
- public synchronized void method_2(String var1, byte var2) {
- this.method_1(var1, var2, -1);
- }
-
- // $FF: renamed from: if (java.lang.String[], byte, int) void
- public synchronized void method_3(String[] var1, byte var2, int var3) {
- if (this.method_7(this.method_9())) {
- int var4 = this.field_25;
-
- do {
- --var4;
- } while(this.method_7(this.method_8(var4)));
-
- ++var4;
- this.method_13(var4);
- this.field_26[var4] = 10;
- this.field_29[var4] = var1;
- this.field_28[var4] = var2;
- this.field_27[var4] = -1L;
- ++this.field_25;
- ++this.field_24;
- } else {
- ++this.field_25;
- ++this.field_24;
- this.field_26[this.field_25] = 10;
- this.field_29[this.field_25] = var1;
- this.field_28[this.field_25] = var2;
- this.field_27[this.field_25] = -1L;
- }
-
- this.field_22 = 0;
- }
-
- // $FF: renamed from: a (java.lang.String[], byte) void
- public synchronized void method_4(String[] var1, byte var2) {
- this.method_3(var1, var2, -1);
- }
-
- // $FF: renamed from: a (java.lang.String[], byte, int) void
- public synchronized void method_5(String[] var1, byte var2, int var3) {
- if (this.method_7(this.method_9())) {
- int var4 = this.field_25;
-
- do {
- --var4;
- } while(this.method_7(this.method_8(var4)));
-
- ++var4;
- this.method_13(var4);
- this.field_26[var4] = 7;
- this.field_29[var4] = var1;
- this.field_28[var4] = var2;
- this.field_27[var4] = -1L;
- ++this.field_24;
- ++this.field_25;
- } else {
- ++this.field_25;
- ++this.field_24;
- this.field_26[this.field_25] = 7;
- this.field_29[this.field_25] = var1;
- this.field_28[this.field_25] = var2;
- this.field_27[this.field_25] = -1L;
- }
-
- this.field_22 = 0;
- }
-
- // $FF: renamed from: if (java.lang.String[], byte) void
- public synchronized void method_6(String[] var1, byte var2) {
- this.method_5(var1, var2, -1);
- }
-
- // $FF: renamed from: do (int) boolean
- public synchronized boolean method_7(int var1) {
- return var1 == 5 || var1 == 7 || var1 == 10;
- }
-
- // $FF: renamed from: if (int) byte
- public synchronized byte method_8(int var1) {
- try {
- return this.field_26[var1];
- } catch (Exception var3) {
- ((Throwable)var3).printStackTrace();
- System.out.println(" index = " + var1);
- return 0;
- }
- }
-
- // $FF: renamed from: a () byte
- public synchronized byte method_9() {
- return this.method_8(this.field_24);
- }
-
- // $FF: renamed from: a (byte) void
- public synchronized void method_10(byte var1) {
- this.field_23 = var1;
- }
-
- // $FF: renamed from: if (byte) void
- public synchronized void method_11(byte var1) {
- if (var1 == 4 && this.field_24 > 0 && this.field_24 == this.field_25) {
- this.method_12();
- } else {
- ++this.field_25;
- this.field_26[this.field_25] = var1;
- this.field_28[this.field_25] = 0;
- this.field_27[this.field_25] = -1L;
- this.field_29[this.field_25] = new String[0];
- }
-
- }
-
- // $FF: renamed from: byte () void
- public synchronized void method_12() {
- this.field_26 = new byte[20];
- this.field_27 = new long[20];
- this.field_28 = new byte[20];
- this.field_29 = new String[20][1];
-
- for(int var1 = 0; var1 < 20; ++var1) {
- this.field_29[var1][0] = "";
- }
-
- this.field_24 = 0;
- this.field_25 = 0;
- this.method_11((byte)4);
- this.method_21();
- System.gc();
- }
-
- public synchronized String toString() {
- String var1 = "";
-
- for(int var2 = 0; var2 <= this.field_25; ++var2) {
- System.out.println("State " + var2 + " = " + this.method_8(var2));
- }
-
- System.out.println("CurrIndex = " + this.field_24);
- System.out.println("QueuedIndex = " + this.field_25);
- return var1;
- }
-
- // $FF: renamed from: a (int) void
- public void method_13(int var1) {
- for(int var2 = 19; var2 > var1; --var2) {
- this.field_26[var2] = this.field_26[var2 - 1];
- this.field_27[var2] = this.field_27[var2 - 1];
- this.field_28[var2] = this.field_28[var2 - 1];
- this.field_29[var2] = new String[this.field_29[var2 - 1].length];
-
- for(int var3 = 0; var3 < this.field_29[var2 - 1].length; ++var3) {
- this.field_29[var2][var3] = this.field_29[var2 - 1][var3];
- }
- }
-
- }
-
- // $FF: renamed from: int () java.lang.String[]
- public synchronized String[] method_14() {
- return this.field_29[this.field_24];
- }
-
- // $FF: renamed from: new () byte
- public synchronized byte method_15() {
- return this.field_22;
- }
-
- // $FF: renamed from: if () java.lang.String
- public synchronized String method_16() {
- String[] var1 = this.method_14();
- return var1[this.field_22 + 1];
- }
-
- // $FF: renamed from: do () java.lang.String
- public synchronized String method_17() {
- return this.field_29[this.field_24][0];
- }
-
- // $FF: renamed from: long () byte
- public synchronized byte method_18() {
- return this.field_28[this.field_24];
- }
-
- // $FF: renamed from: void () void
- public synchronized void method_19() {
- --this.field_24;
- --this.field_25;
- if (this.method_9() == 5) {
- this.field_30.goto.if(this.method_17());
- }
-
- }
-
- // $FF: renamed from: goto () void
- public synchronized void method_20() {
- if (this.field_24 < 20) {
- ++this.field_24;
- }
-
- if (this.method_9() == 5) {
- this.field_30.goto.if(this.method_17());
- }
-
- }
-
- // $FF: renamed from: null () void
- public synchronized void method_21() {
- if (this.field_24 < this.field_25) {
- if (this.field_27[this.field_24 + 1] < System.currentTimeMillis()) {
- this.method_20();
- this.field_30.a(this.method_9());
- }
-
- }
- }
-
- // $FF: renamed from: try () void
- public synchronized void method_22() {
- String[] var1 = this.method_14();
- ++this.field_22;
- if (this.field_22 == var1.length - 1) {
- this.field_22 = 0;
- }
-
- }
-
- // $FF: renamed from: else () void
- public synchronized void method_23() {
- String[] var1 = this.method_14();
- --this.field_22;
- if (this.field_22 == -1) {
- this.field_22 = (byte)(var1.length - 2);
- }
-
- }
-
- // $FF: renamed from: char () void
- public synchronized void method_24() {
- String[] var1 = this.method_14();
- ++this.field_22;
- if (this.field_22 == var1.length - 1) {
- this.field_22 = 0;
- }
-
- }
-
- // $FF: renamed from: case () void
- public synchronized void method_25() {
- String[] var1 = this.method_14();
- --this.field_22;
- if (this.field_22 == -1) {
- this.field_22 = (byte)(var1.length - 2);
- }
-
- }
-
- // $FF: renamed from: for () byte
- public byte method_26() {
- return this.field_28[this.field_24];
- }
- }
-